<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<%@page import="com.demoweb.model.dto.Score"%>
<%@page import="java.util.ArrayList"%>
<%@page import="com.demoweb.model.dto.Membership"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Red Fortress</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link href="/demoweb/styles/style.css" rel="stylesheet" type="text/css" />
</head>
<body>

<% pageContext.include("/WEB-INF/views/include/fortressheader.jsp"); %>

<div id="content">
  <div id="sidebar">
    <% pageContext.include("/WEB-INF/views/include/fortresslogin.jsp"); %>
	<% pageContext.include("/WEB-INF/views/include/fortressrecentupdates.jsp"); %>
  </div>
  
  <!-- ---------------------------------- Main page content ----------------------------------- -->

		<div id="main">
			<h2 class="title">
				Member Rank Inform
			</h2>
		</div>

		<% ArrayList<Score> scores= (ArrayList<Score>)request.getAttribute("ranking");%>		

			<table border="1" style="width:500px; text-align:center;">
				<tr style="background-color:orange;height:30px">
					<th style="width:100px">번호</th>
					<th style="width:250px">아이디</th>
					<th style="width:200px;text-align:center">점수</th>
				</tr>
				
				<% for (int i = 0;i<scores.size();i++) { %>
				<tr style="height:30px">
					<td><%= i+1 %></td>
					<td style="text-align:center;">
						<a  <%= scores.get(i).getGameNo() %>'>
							<%= scores.get(i).getMemberId() %>
						</a>
					</td>
					<td><%= scores.get(i).getScore() %></td>
				</tr>
				<% } %>
			</table>
			</br></br>
  
  <!-- -------------------------------------------------------------------------------------------- -->
  
</div>
<div id="footer">
  <p id="legal">Copyright &copy; 2007 Red Avenue. All Rights Reserved. Designed by <a href="http://www.freecsstemplates.org/">Free CSS Templates</a>.</p>
  <p id="links"><a href="http://www.free-css.com/">Home</a> | <a href="http://www.free-css.com/">Terms of Use</a></p>
</div>
</body>
</html>
